package com.xiashitech.agent.instrumentation.httprequest;

import javax.servlet.ServletOutputStream;
import javax.servlet.WriteListener;
import java.io.IOException;
import java.io.OutputStream;

public class XSServletOutputStream extends ServletOutputStream {
    private OutputStream outputStream;
    public XSServletOutputStream(OutputStream outputStream) {
        this.outputStream = outputStream;
    }
    @Override
    public boolean isReady() {
        return false;
    }

    @Override
    public void setWriteListener(WriteListener listener) {
    }

    @Override
    public void write(int b) throws IOException {
        outputStream.write(b);
    }
}
